package com.unicom.network.task;

import java.util.Set;
import com.unicom.config.IStoryCore;
import com.unicom.network.IRunable;
import com.unicom.network.IStoryProtocol;
import com.unicom.utils.StoryListener;

public abstract class AbstractTask implements IRunable {
	protected Set<StoryListener> listener = null;
	protected String Authkey;
	protected IStoryProtocol protocol;
	protected IStoryCore core;

	public AbstractTask(StoryListener listener, IStoryCore core) {
		this.listener = core.copyAndReconstructListeners(listener);
		this.core = core;
		this.Authkey = core.getAuthenKey();
		this.protocol = core.getProtocol();
	}
}
